﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo0520
{
    //加法
    class Puls:Calculate
    {
        
        public override void DisplayResult(double num1, double num2)
        {
            base.DisplayResult(num1,num2);
            this.num1 = num1;
            this.num2 = num2;
            double sum = 0;
            sum = num1 + num2;
            Console.WriteLine("{0}+{1}={2}",this.num1,this.num2,sum);
        }
    }
}
